package com.macrounion.atv.service.service;

import com.macrounion.atv.service.dto.resp.SpotListRespDto;
import com.macrounion.atv.service.dto.resp.SpotRespDto;
import com.macrounion.atv.service.entity.Spot;
import com.macrounion.atv.service.entity.ext.SpotExt;
import com.macrounion.base.service.service.BaseService;

import java.util.List;

public interface SpotService extends BaseService<Spot> {

    List<Spot> getSpotByParentId(String parentId);

    List<SpotRespDto> getTreeSpot(String parentSpotId,Integer isLoadDevice,Integer isLoadPing);

    List<SpotListRespDto> getSpotListBySpot(SpotExt spot);

    List<Spot> getAllSpot();

    List<Spot> getAllParentSpotById(String spotId);

    List<Spot> getChildrenSpotById(String spotId);

    int findCount(Spot spot);
}